:root {
  --ais-primary-color-rgb: 130, 50, 220;
}

body,
h1 {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

em {
  background: cyan;
  font-style: normal;
}

.header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0.5rem 1rem;
  background-image: linear-gradient(to right, #8e43e7, #00aeff);
  color: #fff;
  margin-bottom: 1rem;
}

.header a {
  color: #fff;
  text-decoration: none;
}

.header-title {
  font-size: 1.2rem;
  font-weight: normal;
}

.header-title::after {
  content: ' ▸ ';
  padding: 0 0.5rem;
}

.header-subtitle {
  font-size: 1.2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.search-panel {
  display: flex;
}

.search-panel__filters {
  flex: 1;
}

.search-panel__results {
  flex: 3;
}

.searchbox {
  margin-bottom: 2rem;
}

.pagination {
  margin: 2rem auto;
  text-align: center;
}

#related-products,
.ais-Hits--single {
  margin-top: 1rem;
}

.ais-Hits--single article {
  display: flex;
  gap: 1rem;
}

.ais-Hits--single img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.ais-TrendingItems-item,
.ais-RelatedProducts-item {
  background: none !important;
  align-items: stretch !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ais-TrendingItems-item > div,
.ais-RelatedProducts-item > div {
  align-items: start;
  background: #fff;
  align-items: center;
  padding: 1.5rem;
  display: flex;
  box-shadow: 0 0 0 1px #23263b0d, 0 1px 3px #23263b26;
}

.ais-TrendingItems-item img,
.ais-RelatedProducts-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.ais-TrendingItems-item article,
.ais-RelatedProducts-item article {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.ais-TrendingItems-item h2,
.ais-RelatedProducts-item h2 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.ais-Carousel-item {
  padding: 0.5rem !important;
}

.ais-Carousel-list {
  margin: -0.5rem;
  grid-auto-columns: calc(22% - 0.5rem) !important;
}

.ais-Carousel::before,
.ais-Carousel::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.5rem;
  display: block;
  background: rgb(255, 255, 255);
  content: '';
}

.ais-Carousel::before {
  left: -0.5rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.ais-Carousel::after {
  right: -0.5rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}
